/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_bitacora_reparacionCriteria extends AbstractORMCriteria {
	public final IntegerExpression re_id_bitacora_reparacion;
	public final BooleanExpression re_grave;
	public final BooleanExpression re_inhabilita;
	public final StringExpression re_observacion;
	public final StringExpression re_codigo_falla;
	
	public Tbv_bitacora_reparacionCriteria(Criteria criteria) {
		super(criteria);
		re_id_bitacora_reparacion = new IntegerExpression("re_id_bitacora_reparacion", this);
		re_grave = new BooleanExpression("re_grave", this);
		re_inhabilita = new BooleanExpression("re_inhabilita", this);
		re_observacion = new StringExpression("re_observacion", this);
		re_codigo_falla = new StringExpression("re_codigo_falla", this);
	}
	
	public Tbv_bitacora_reparacionCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_bitacora_reparacion.class));
	}
	
	public Tbv_bitacora_reparacionCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_bitacora_maquinaCriteria createTbv_bitacora_maquinabm_id_bitacora_maquinaCriteria() {
		return new Tbv_bitacora_maquinaCriteria(createCriteria("tbv_bitacora_maquinabm_id_bitacora_maquina"));
	}
	
	public Tbv_bitacora_reparacion uniqueTbv_bitacora_reparacion() {
		return (Tbv_bitacora_reparacion) super.uniqueResult();
	}
	
	public Tbv_bitacora_reparacion[] listTbv_bitacora_reparacion() {
		java.util.List list = super.list();
		return (Tbv_bitacora_reparacion[]) list.toArray(new Tbv_bitacora_reparacion[list.size()]);
	}
}

